package com.neu.dao;

import com.neu.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserDao {

    @Insert("insert into t_user(name,password,email,telephone,department,major,role) " +
            "values(#{u.name},#{u.password},#{u.email},#{u.telephone},#{u.department},#{u.major},#{u.role})")
    public int insert (@Param("u") User user);
}
